###############################################################################
# Makefile for project 
###############################################################################

## General options
PROJECT = 
MCU = PIC16F877A
COMPILER = "CCS for PIC"
TARGET = Debug
SHELL = C:\WINDOWS\system32\cmd.exe

## Tools general options
CCFLAGS=-J +DF +ES -P -Z +O8 +CC +EXPORT +FM
LDFLAGS=-J +DF +ES -P -Z +O8 +CC +FM

## Processing Tools
CC=ccsc.exe
LD=ccsc.exe
#  C:/Users/j.prince-devaraj/OneDrive - University of Wales Trinity Saint David/Desktop/Desktop/2026 - Term 2,3,1/Jan 2026/Teaching Modules/Embedded C/Exam_Revision/Chasor/PIC16F877A_1/Debug.cof: TOOL=LD
#     C:/Users/j.prince-devaraj/OneDrive - University of Wales Trinity Saint David/Desktop/Desktop/2026 - Term 2,3,1/Jan 2026/Teaching Modules/Embedded C/Exam_Revision/Chasor/PIC16F877A_1/../main.o: TOOL=CC
#        C:/Users/j.prince-devaraj/OneDrive - University of Wales Trinity Saint David/Desktop/Desktop/2026 - Term 2,3,1/Jan 2026/Teaching Modules/Embedded C/Exam_Revision/Chasor/main.c

# Build tree:
all:	Debug

Debug:	Debug.cof

Debug.cof:	../main.o 
	$(LD) $(LDFLAGS)  LINK="Debug.cof=..\main.o"

../main.o:	../main.c 
	$(CC) $(CCFLAGS)  "..\main.c"

# tidy - delete all temporary files which are not involved in the target generation
tidy:
	rm -rf ./Debug.esym
	rm -rf ./Debug.sym
	rm -rf ./Debug.lst
	rm -rf Debug.err
	rm -rf ../main.esym
	rm -rf ../main.osym
	rm -rf ../main.err

# cleanup - delete all generated files
clean:	tidy
	rm -rf Debug.cof
	rm -rf ../main.o
